package com.roc.template.mongo.dao;

import com.roc.template.activiti.dto.HistoryProcess;
import com.roc.template.activiti.dto.LeaveTask;
import com.roc.template.base.PageBean;
import com.roc.template.mongo.base.BaseDao;
import com.roc.template.mongo.model.LeaveApply;
import org.activiti.engine.runtime.ProcessInstance;

import java.util.Map;

/**
 * @ClassName LeaveDao
 * @Description: TODO
 * @Author Administrator
 * @Date 2020/8/25 11 14
 * @Version V1.0
 **/
public interface LeaveDao extends BaseDao<LeaveApply> {

    ProcessInstance startWorkflow(LeaveApply apply, String userid, Map<String, Object> variables);

    PageBean<LeaveTask> getMyTaskList(String userid, int firstrow, int rowcount);

    int getMyAllTask(String userid);

    PageBean<HistoryProcess> getHistory(String openId, int pageNum, int pageSize);
}
